package com.ctg.itrdc.imageconsole.data.dao;

import java.util.List;

import com.ctg.itrdc.imageconsole.data.entity.DockerMicroVersion;
import com.ctg.itrdc.paspsdk.data.dao.IBaseCacheDao;
import com.ctg.itrdc.paspsdk.data.dao.IBaseDao;

public interface IDockerMicroVersionDao extends IBaseCacheDao, IBaseDao {	

	public DockerMicroVersion selectById(Long id);
	
	public void deleteById(Long id);	

	public void deleteByDockerMicroServiceId(Long serviceId);

	public List<DockerMicroVersion> selectByDockerMicroServiceId(Long serviceId);

	public List<DockerMicroVersion> selectByDockerMicroServiceIdAndState(Long serviceId, String state);

//	public void updateYamlContentAndRcName(Long id, String yamlContent, String rcName);

	public void updateStateAndReleaseStateAndDesc(Long id, String state, String releaseState, String releaseDesc, Long lastUpdateUserId, String lastUpdateTime);

//	public List<DockerMicroVersion> selectByTenantCode(String tenantCode);

	public void updateIsAutoElastic(Long id, Integer isAutoElastic);

	public Integer selectSizeByDockerMicroServiceIdAndState(Long serviceId, String string);

	
	 
}
